\select@language {danish}
\contentsline {section}{\numberline {0.1}Introduction}{3}
\contentsline {section}{\numberline {0.2}Scanner - Lexical Analysis}{3}
\contentsline {subsection}{\numberline {0.2.1}Implementation}{3}
\contentsline {section}{\numberline {0.3}Parsing - Syntatic Analysis }{4}
\contentsline {subsection}{\numberline {0.3.1}Precedence - Shift-reduce}{4}
\contentsline {subsection}{\numberline {0.3.2}Implementation - Bison}{5}
\contentsline {section}{\numberline {0.4}Abstract Syntax tree}{6}
\contentsline {subsection}{\numberline {0.4.1}Implementation}{6}
\contentsline {section}{\numberline {0.5}Pretty printer - Implementation }{7}
\contentsline {section}{\numberline {0.6}Test}{8}
\contentsline {subsection}{\numberline {0.6.1}Dangeling else}{9}
\contentsline {subsection}{\numberline {0.6.2}Comments}{9}
\contentsline {subsection}{\numberline {0.6.3}Indentation}{10}
\contentsline {subsection}{\numberline {0.6.4}Precedence}{11}
\contentsline {subsection}{\numberline {0.6.5}Nested functions}{11}
\contentsline {subsection}{\numberline {0.6.6}Function id}{12}
\contentsline {subsection}{\numberline {0.6.7}Nested statements}{12}
\contentsline {section}{\numberline {0.7}Appendix}{14}
\contentsline {subsection}{\numberline {0.7.1}rajahscanner.l}{14}
\contentsline {subsection}{\numberline {0.7.2}rajahparser.y}{15}
\contentsline {subsection}{\numberline {0.7.3}memory.h}{18}
\contentsline {subsection}{\numberline {0.7.4}memory.c}{18}
\contentsline {subsection}{\numberline {0.7.5}tree.h}{19}
\contentsline {subsection}{\numberline {0.7.6}tree.c}{25}
\contentsline {subsection}{\numberline {0.7.7}pretty.h}{34}
\contentsline {subsection}{\numberline {0.7.8}pretty.c}{34}
\contentsline {subsection}{\numberline {0.7.9}main.c}{41}
\contentsline {subsection}{\numberline {0.7.10}Makefile}{42}
\contentsline {subsection}{\numberline {0.7.11}dangeling\_else\_test.raj}{42}
\contentsline {subsection}{\numberline {0.7.12}dangeling\_else\_test.raj}{42}
\contentsline {subsection}{\numberline {0.7.13}comments\_test.raj}{43}
\contentsline {subsection}{\numberline {0.7.14}indentation\_test.raj}{43}
\contentsline {subsection}{\numberline {0.7.15}precedence\_test.raj}{43}
\contentsline {subsection}{\numberline {0.7.16}nested\_functions\_test.raj}{44}
\contentsline {subsection}{\numberline {0.7.17}function\_id\_test.raj}{45}
\contentsline {subsection}{\numberline {0.7.18}nested\_statements\_test.raj}{45}
